<%--
  Created by IntelliJ IDEA.
  User: 14811
  Date: 2022-5-1
  Time: 10:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/common/common.jsp"%>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>东东旅游-搜索</title>
    <link rel="stylesheet" type="text/css" href="<%=path%>/css/common.css">
    <link rel="stylesheet" href="<%=path%>/css/search.css">
</head>
<body>
<!--引入头部-->
<jsp:include page="header.jsp"/>
<div class="page_one">
    <div class="contant">
        <div class="crumbs">
            <img src="<%=path%>/images/search.png" alt="">
            <p>东东旅行><span>搜索结果</span></p>
        </div>
        <div class="xinxi clearfix">
            <div class="left">
                <div class="header">
                    <span>商品信息</span>
                    <span class="jg">价格</span>
                </div>
                <ul>
                    <c:forEach items="${pageInfo.list}" var="route">
                        <li>
                            <div class="img"><img src="<%=path%>/file/download?filename=${route.rimage}" alt="" width="299px" height="169px"></div>
                            <div class="text1">
                                <p>${route.rname}</p>
                                <br/>
                                <p>${route.routeintroduce}</p>
                            </div>
                            <div class="price">
                                <p class="price_num">
                                    <span>&yen;</span>
                                    <span>${route.price}</span>
                                    <span>起</span>
                                </p>
                                <p><a href="/pageController/toRouteDetail/${route.rid}/${route.cid}">查看详情</a></p>
                            </div>
                        </li>
                    </c:forEach>


                </ul>
                <div class="page_num_inf">
                    <i></i> 共
                    <span>${pageInfo.pages}</span>页<span>${pageInfo.total}</span>条
                </div>
                    <h4>共${pageInfo.pages}页！当前第${pageInfo.pageNum}页</h4>
                <nav aria-label="Page navigation">
                    <ul class="pagination">
                        <li>
                            <a href="${pageContext.request.contextPath}/indexController/toRouteListSearch?pageNum=${pageInfo.pageNum-1}&pageSize=5&rname=${route.rname}" aria-label="Previous">
                                <span aria-hidden="true">&laquo;</span>
                            </a>
                        </li>
                        <c:forEach begin="1" end="${pageInfo.pages}" var="i" >
                            <li><a href="${pageContext.request.contextPath}/indexController/toRouteListSearch?pageNum=${i}&pageSize=5&rname=${route.rname}">${i}</a></li>
                        </c:forEach>
                        <li>
                            <a href="${pageContext.request.contextPath}/indexController/toRouteListSearch?pageNum=${pageInfo.pageNum+1}&pageSize=5&rname=${route.rname}" aria-label="Next">
                                <span aria-hidden="true">&raquo;</span>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="right">
                <div class="top">
                    <div class="hot">HOT</div>
                    <span>热门推荐</span>
                </div>
                <ul>
                    <c:forEach items="${tabRoutesPopular}" var="route">
                        <li>
                            <div class="left"><img src="${pageContext.request.contextPath}/file/download?filename=${route.rimage}" height="70" width="113" alt=""></div>
                            <div class="right">
                                <p>${route.rname}</p>
                                <p>网付价<span>&yen;<span>${route.price}</span>起</span>
                                </p>
                            </div>
                        </li>
                    </c:forEach>

                </ul>
            </div>
        </div>
    </div>
</div>

<!--引入头部-->
<div id="footer">
    <jsp:include page="footer.jsp"/>
</div>
<!--导入布局js，共享header和footer-->
</body>

</html>
